public class SF_2_10 {
    public static void main(String[] args) {
        System.out.println(back(2,1));
    }
    static int back(int n,int num){
        if (n==0)
            return num;
        return back(n-1,(num+1)*2);
    }
}